package com.mec.web.y2012.ebookshop;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;

import org.apache.log4j.Logger;

/**
 * Servlet implementation class Book
 */
@WebServlet("/Book")
public class Book extends HttpServlet {

	private static final long serialVersionUID = -6824510208367460824L;

	public Book(){
		
	}
	
	public Book(String title, float price, Integer quantity){
		this.title = title;
		this.price = price;
		this.quantity = quantity;
	}
	public Float getPrice() {
		return price;
	}
	public void setPrice(Float price) {
		this.price = price;
	}
	public Integer getQuantity() {
		return quantity;
	}
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	private String title;
	private Float price;
	private Integer quantity;
	
	private static final Logger logger = 
			Logger.getLogger(Book.class);
}
